<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../include/admincontent.jsp" %>
<link rel="stylesheet" href="<%=basepath%>/resources/js/plugins/layui/css/layui.css" />
<div id="planpanel" class="condition_cont">
    <form id="msthisform1" method="post" action="/Easy/AssignmentAction?pid=${pid}&fid=${fid}&deptcode=${deptcode}" >
        <table class="treeTable searchform">
            <input type="hidden" name="pid" value="${pid}"/>
            <input type="hidden" name="fid" value="${fid}"/>
            <input type="hidden" name="deptcode" value="${deptcode}"/>
            <thead>
            <tr>
                <td>招聘岗位:</td>
                <td colspan="3">
                    <div>
                        <select name="jname" id="jname">
                            <option value="">请选择</option>
                            <c:forEach var="projectinfojobs" items="${jobs}" varStatus="item" >
                                <c:choose>
                                    <c:when test="${projectinfojobs!=null}">
                                        <option value="${projectinfojobs.jobname}">${projectinfojobs.jobname}</option>
                                    </c:when>
                                </c:choose>
                            </c:forEach>
                        </select>
                    </div>
                </td>
                <%--<td></td>
                <td></td>--%>
            </tr>
            <%--<tr>
                <td>操作内容:</td>
                <td colspan="3">
                        <div >
                            <c:if test="${flow=='资料审核'}" var="flow">
                                <input type="radio" name="recruittype" value="4" title="资料审核一键安排" lay-filter="ptypeRadio" >
                            </c:if>
                            <c:if test="${flow=='面试'}" var="flow">
                                <input type="radio" name="recruittype" value="4" title="面试一键安排" lay-filter="ptypeRadio" >
                            </c:if>
                            <c:if test="${flow=='体检'}" var="flow">
                                <input type="radio" name="recruittype" value="4" title="体检一键安排" lay-filter="ptypeRadio" >
                            </c:if>
                            <c:if test="${flow=='报到'}" var="flow">
                                <input type="radio" name="recruittype" value="4" title="报到一键安排" lay-filter="ptypeRadio" >
                            </c:if>
                            <input type="radio" name="recruittype" value="1" title="一键发布"  lay-filter="ptypeRadio" >
                            <input type="radio" name="recruittype" value="2" title="一键屏蔽" lay-filter="ptypeRadio">
                            <input type="radio" name="recruittype" value="3" title="一键发送短信" lay-filter="ptypeRadio">

                        </div>
                </td>

            </tr>--%><%--<tr>
                <td>操作内容:</td>
                <td colspan="3">
                        <div >
                            <c:if test="${flow=='资料审核'}" var="flow">
                                <input type="radio" name="recruittype" value="4" title="资料审核一键安排" lay-filter="ptypeRadio" >
                            </c:if>
                            <c:if test="${flow=='面试'}" var="flow">
                                <input type="radio" name="recruittype" value="4" title="面试一键安排" lay-filter="ptypeRadio" >
                            </c:if>
                            <c:if test="${flow=='体检'}" var="flow">
                                <input type="radio" name="recruittype" value="4" title="体检一键安排" lay-filter="ptypeRadio" >
                            </c:if>
                            <c:if test="${flow=='报到'}" var="flow">
                                <input type="radio" name="recruittype" value="4" title="报到一键安排" lay-filter="ptypeRadio" >
                            </c:if>
                            <input type="radio" name="recruittype" value="1" title="一键发布"  lay-filter="ptypeRadio" >
                            <input type="radio" name="recruittype" value="2" title="一键屏蔽" lay-filter="ptypeRadio">
                            <input type="radio" name="recruittype" value="3" title="一键发送短信" lay-filter="ptypeRadio">

                        </div>
                </td>

            </tr>--%>
            <tr>
                <td width="100">面试时间:</td>
                <td >
                    <div>
                        <input type="text" name="starttime" class="select" datatype="*" nullmsg="面试时间不能为空"
                               onFocus="blur()" onclick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"/>
                    </div>
                </td>
                <td width="100">确认截止时间:</td>
                <td>
                    <div><input type="text" name="endtime" class="select" onFocus="blur()" onclick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"/></div>
                </td>
            </tr>
            <tr>
                <td width="90">面试地点:</td>
                <td width="440" colspan="3">
                    <div>
                        <input type="text" name="address" datatype="*" nullmsg="面试地点不能为空！" />
                    </div>
                </td>
                <%--<td></td>
                <td></td>--%>
            </tr>
            <tr>
                <td>安排人数:</td>
                <td colspan="3">
                    <div><input type="number" name="allowcount" datatype="*" nullmsg="安排人数不能为空！" style="height: 30px"/></div>
                </td>
                <%--<td style="text-align:left">用于准考证备注栏</td>
                <td></td>--%>
            </tr>
            <tr>
                <td>注意事项:</td>
                <td>
                    <div id="div_mszysx">
                        <textarea name="mszysx" id="mszysx" style="width:99%;height:150px;" > ${mszysx}</textarea>
                    </div>
                </td>
                <td style="text-align:left">资料审核注意事项,如无注意事项<a href="javascript:clearZysx()">清除</a>内容即可</td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td colspan="3">
                    <button type="submit" class="op">一键分配</button>
                </td>
            </tr>
            </thead>
        </table>
        <div id="bsusers"></div>
    </form>
</div>
<%--<script src="../../resources/js/plugins/layui/layui.all.js" type="text/javascript"></script>--%>
<script charset="utf-8" src="/resources/js/plugins/layui/layui.all.js"></script>
<script charset="utf-8" src="/resources/js/plugins/kindeditor-4.1.10/kindeditor-min.js"></script>
<script charset="utf-8" src="/resources/js/plugins/kindeditor-4.1.10/lang/zh_CN.js"></script>
<script>

    var laydate;
    var editor;
    KindEditor.ready(function (K) {
        editor = K.create('#zlzysx', {
            resizeType: 1,
            items: ['removeformat'],
            afterBlur: function () {
                this.sync();
            }
        });
    });

    function clearZysx() {
        editor.html('');
    }

    $(function () {
        $("#msthisform1").Validform({
            ajaxPost: true,
            tiptype: function (msg) {
                if (msg !== "通过信息验证！")
                    layer.msg(msg,{time:1000});
            },
            callback: function (data) {
                if (data.state) {
                    document.getElementById("msthisform1").reset();
                    if (data.state)
                        parent.layer.alert(data.message, {icon: 1, time: 5000});
                    else
                        parent.layer.alert(data.message, {icon: 2, time: 5000});
                }
            }
        });
    })
</script>